//
//  z_Precompile.h
//  Template
//
//  Created by zhoubl on 13-6-3.
//  Copyright (c) 2013年 cdeledu. All rights reserved.
//
#ifndef Template_z_Precompile_h
#define Template_z_Precompile_h

#import "MBProgressHUD.h"
#import "Reachability.h"
#import "ASIFormDataRequest.h"
#import "ASINetworkQueue.h"
#import "JSONKit.h"


//安全删除对象
#define SafeRelease(_v) if(_v != nil){ [_v release]; _v = nil;}
//#define SafeRelease(_v) if(_v != nil){if([_v isKindOfClass:[UIView class]]){[(UIView*)_v removeFromSuperview];}[_v release];_v = nil;}

//检查对象是否存在
#define NodeExist(node) (node != nil && ![node isEqual:[NSNull null]])

//判断当前是否是iPhone5
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)


#endif
